import express from 'express'
import {sort,filter,paginate} from './post.middleware'
// import * as postController from './post.controller'

const router = express.Router()

// 中间件的高级用法，一件大事分成多件小事
router.get('/posts',sort,filter,paginate,)//postController.index);

export default router